package com.shqcjd.yunweiyanoperator.model.pojo;

import com.horen.chart.piechart.IPieData;

/**
 * Created by sy on 2019/3/15.
 */

public class EqptPieData implements IPieData {
    private String name;
    private double valueData;

    public EqptPieData(double valueData, String name) {
        this.name = name;
        this.valueData = valueData;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 值
     */
    @Override
    public float getValue() {
        return (float) valueData;
    }

    /**
     * 对应名字
     */
    @Override
    public String getLabelName() {
        return name;
    }

    public void setValue(double value) {
        this.valueData = value;
    }
}
